<template>
  <div>

    <div class="title">
      公司资料

    </div>


    <div class="fromData">

      <div class="fromTab" style="display: flex;align-items: center;">

        <div @click="onChangeBtn(1)" :class="showIndex === 1 ? 'tabOne' : 'tabTwo'">
          基本资料
        </div>

        <div @click="onChangeBtn(2)" :class="showIndex === 2 ? 'tabOne' : 'tabTwo'">
          工商资质
        </div>

      </div>

      <!-- 基本资料  -->
      <basicData v-if="showIndex === 1"></basicData>

      <!-- 工商资质 -->
      <aptitude v-if="showIndex === 2"></aptitude>
    </div>

  </div>
</template>

<script>
import basicData from './compayPage/basicData.vue';
import aptitude from './compayPage/aptitude.vue';
export default {
  name: "SupplierCompany",
  components: {
    basicData,
    aptitude
  },
  data() {
    return {
      showIndex: 1
    }
  },
  methods: {
    onChangeBtn(num) {
      this.showIndex = num
    }
  }

}
</script>

<style lang="less" scoped>
.tabOne {
  width: 525px;
  line-height: 67px;
  text-align: center;
  border-bottom: 3px solid #0052D9;
  border-radius: 0px 0px 0px 0px;
  font-family: PingFang SC, PingFang SC;
  font-weight: 500;
  font-size: 16px;
  color: #0052D9;
  font-style: normal;
  text-transform: none;
  cursor: pointer;
}

.tabTwo {
  width: 525px;
  line-height: 67px;
  text-align: center;
  border-bottom: 1px solid #E2E2E2;
  border-radius: 0px 0px 0px 0px;
  font-family: PingFang SC, PingFang SC;
  font-weight: 500;
  font-size: 14px;
  color: #333333;
  font-style: normal;
  text-transform: none;
  cursor: pointer;
}


.fromTab {
  height: 67px;
}

.fromData {
  width: 1050px;
  // min-height: 715px;
  margin: auto;
  // margin-top: 40px;
  padding-bottom: 20px;
}

.title {
  height: 56px;
  background: #FFFFFF;
  line-height: 56px;
  border-radius: 0px 0px 0px 0px;
  font-family: Microsoft YaHei, Microsoft YaHei;
  font-weight: bold;
  font-size: 16px;
  color: #333333;
  font-style: normal;
  text-transform: none;
  border-bottom: 4px solid #F5F5F5;
  padding-left: 32px;
}
</style>